/*  1:   */ package org.jetbrains.jps.model.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsGlobal;
import org.jetbrains.jps.model.JpsModel;
import org.jetbrains.jps.model.ex.JpsElementReferenceBase;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ public class JpsGlobalElementReference
/*  9:   */   extends JpsElementReferenceBase<JpsGlobalElementReference, JpsGlobal>
/* 10:   */ {
/* 11:   */   public JpsGlobal resolve()
/* 12:   */   {
/* 13:28 */     JpsModel localJpsModel = getModel();
/* 14:29 */     return localJpsModel != null ? localJpsModel.getGlobal() : null;
/* 15:   */   }
/* 16:   */   
/* 17:   */   @NotNull
/* 18:   */   public JpsGlobalElementReference createCopy()
/* 19:   */   {
/* 20:35 */     void tmp7_4 = new JpsGlobalElementReference();
/* 21:35 */     if (tmp7_4 == null) {
/* 22:35 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsGlobalElementReference", "createCopy" }));
/* 23:   */     }
/* 24:35 */     return tmp7_4;
/* 25:   */   }
/* 26:   */   
/* 27:   */   public void applyChanges(@NotNull JpsGlobalElementReference paramJpsGlobalElementReference)
/* 28:   */   {
/* 29:40 */     if (paramJpsGlobalElementReference == null) {
/* 30:40 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsGlobalElementReference", "applyChanges" }));
/* 31:   */     }
/* 32:   */   }
/* 33:   */   
/* 34:   */   public String toString()
/* 35:   */   {
/* 36:44 */     return "global ref";
/* 37:   */   }
/* 38:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.impl.JpsGlobalElementReference

 * JD-Core Version:    0.7.0.1

 */